package com.ruoyi.collection.mapper;

import java.util.List;

import com.ruoyi.collection.domain.Collection;

/**
 * collectionMapper接口
 *
 * @author MingYu
 * @date 2021-12-20
 */
public interface CollectionMapper
{
    /**
     * 查询collection
     *
     * @param GoodsId goodsId主键
     * @return reward
     */
    public Collection selectCollectionByGoodsId(Int GoodsId);

    /**
     * 查询collection列表
     *
     * @param Collection collection
     * @return reward集合
     */
    public List<Collection> selectCollectionList(Collection collection);

    /**
     * 新增collection
     *
     * @param Collection collection
     * @return 结果
     */
    public int insertCollection(Collection collection);

    /**
     * 删除collection
     *
     * @param GoodsId collection主键
     * @return 结果
     */
    public int deleteCollectionByGoodsId(Int GoodsId);

    /**
     * 批量删除collection
     *
     * @param GoodsIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCollectionByGoodsIds(Int[] GoodsIds);
}
